<?php

namespace app\common\model;

use think\Db;
use think\Model;

class UserTimesModel extends Model
{
    protected $table = 'edu_user_times';
    
    /**
     * 学生姓名
     */
    public function getRealnameAttr($val,$row){
        $name = Db::table('edu_user')->where('id',$row['user_id'])->find()['realname'];
        return $name;
    }
}